package com.hpl.decoratormode.decorator;

import com.hpl.decoratormode.service.People;

/**
 * People接口装饰器具体实现类-增加开车功能
 */
public class PeopleCarDecorator extends PeopleDecorator{

    public PeopleCarDecorator(People people){
        super(people);
    }

    @Override
    public void run() {
        super.people.run();
        System.out.println("我会开车");
    }
}
